home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / MacApp / Unsupported Samples / CRC Cards / Source / CRCCards.r < prev    next >
Encoding:
Text File  |  1990-07-12  |  4.8 KB  |  205 lines  |  [TEXT/MPS ]

  1. // =============================== standard includes =======================================
  2. #ifndef __TYPES.R__
  3. #include "Types.r"                    // SIZE, WIND, STR  , MBAR etc.
  4. #endif
  5.  
  6. #ifndef __SYSTYPES.R__
  7. #include "SysTypes.r"                // needed for version resource
  8. #endif
  9.  
  10. #ifndef __MacAppTypes__
  11. #include "MacAppTypes.r"            // cmnu, etc.
  12. #endif
  13.  
  14. #ifndef __ViewTypes__
  15. #include "ViewTypes.r"                // view resources
  16. #endif
  17.  
  18. #if qDebug
  19. include "Debug.rsrc";                // always include
  20. #endif
  21.  
  22. include "MacApp.rsrc" not 'ckid';        // always include
  23. include "Printing.rsrc" not 'ckid';        // include standard MacApp printing resources
  24.  
  25. include "CRCCards" 'CODE';                    // include youe CODE resources when running Rez
  26. include "views.rsrc" not 'ckid';                
  27. include "TypeMenu.rsrc" not 'ckid';            
  28. include "Misc.rsrc" not 'ckid';                    
  29.  
  30. // =============================== optional includes =======================================
  31. include "Defaults.rsrc"    'cmnu' (mApple);                // default Apple menu
  32. include "Defaults.rsrc"    'cmnu' (mFile);                // default File menu
  33. include "Defaults.rsrc"    'cmnu' (mEdit);                // default Edit menu
  34.  
  35. #define cNewCardCmd                    1001
  36. #define cDeleteCardCmd                1002
  37. #define cEditCardCmd                    1003
  38. #define cWriteCodeCmd                1004
  39. #define cDelFieldCmd                    1005
  40. #define cDelMethodCmd                1006
  41. #define cDelCollaboratorCmd        1007
  42. #define cAddFieldCmd                    1008
  43. #define cAddMethodCmd                1009
  44. #define cAddCollaboratorCmd        1010
  45. #define cMoveViewCmd                    1011
  46. #define cChangeNameCmd                1012
  47. #define cChangeSuperClassCmd        1013
  48. #define cInPascalCmd                 1014
  49. #define cInCPPCmd                     1015
  50. #define cChangeFieldCmd             1016
  51. #define cChangeMethodCmd             1017
  52. #define cChangeCollaboratorCmd    1018
  53.  
  54. // =============================== debug window =================================
  55. resource 'dbug' (kDebugParamsID,
  56. #if qNames
  57. "Debug",
  58. #endif
  59.     purgeable) {
  60.         {350, 4, 450, 450},    // Bounding rect for debug window (or normal)
  61.         396,                         // Font rsrc ID (monaco)
  62.         9,                             // Font size (normal = 9)
  63.         60,                        // Number of lines (normal = 120)
  64.         90,                        // Width of lines in characters (normal = 100)
  65.         openInitially,            // open initially
  66.         "Steve's Debug Window"    // Window title
  67. };
  68.  
  69. //--------------------------------------------------------------------------------
  70. resource 'seg!' (256,
  71. #if qNames
  72. "CRCCards",
  73. #endif
  74.     purgeable) {
  75.     {    
  76.         "GNonRes";
  77.         "GDoCommand";
  78.         "GOpen";
  79.         "GSelCommand";
  80.         "GClose";
  81.         "GClipBoard";
  82.         "GFile";
  83.         "GWriteFile";
  84.         "GPrint";
  85.         "GTerminate";
  86.         "GDebugger";
  87.         "ATextHandler";
  88.     }
  89. };
  90.  
  91. resource 'mem!' (256,
  92. #if qNames
  93. "CRCCards",
  94. #endif
  95.     purgeable) {
  96.     15 * 1024,        // Add to temporary reserve   
  97.     0,                    // Emergency reserve   
  98.     10 * 1024        // Add to stack space   
  99. };
  100.  
  101. resource 'SIZE' (-1) {
  102.     saveScreen,
  103.     acceptSuspendResumeEvents,
  104.     enableOptionSwitch,
  105.     canBackground,
  106.     MultiFinderAware,
  107.     backgroundAndForeground,
  108.     dontGetFrontClicks,
  109.     ignoreChildDiedEvents,
  110.     is32BitCompatible,
  111.     reserved, reserved, reserved, reserved, reserved, reserved, reserved,
  112. #if qDebug
  113.     1000 * 1024,
  114.     750 * 1024
  115. #else
  116.     500 * 1024,
  117.     400 * 1024
  118. #endif
  119. };
  120.  
  121.  
  122.  
  123. resource 'cmnu' (128) {
  124.     128,
  125.     textMenuProc,
  126.     allEnabled,
  127.     enabled,
  128.     "Buzzwords",
  129.      {
  130.         "Page Setup Change", noIcon, noKey, noMark, plain, cChangePrinterStyle;
  131.         "Typing", noIcon, noKey, noMark, plain, cTyping;
  132.         "Card Move", noIcon, noKey, noMark, plain, cMoveViewCmd
  133.     }
  134.  
  135. };
  136.  
  137. resource 'cmnu' (4) {
  138.     4,
  139.     textMenuProc,
  140.     0x7FFFFFFF,
  141.     enabled,
  142.     "Design",
  143.      {
  144.         "Edit Card", noIcon, noKey, noMark, plain, cEditCardCmd;
  145.         "Add Card", noIcon, noKey, noMark, plain, cNewCardCmd;
  146.         "Delete Card", noIcon, noKey, noMark, plain, cDeleteCardCmd;
  147.         "-", noIcon, noKey, noMark, plain, nocommand;
  148.         "Write Source Code", noIcon, noKey, noMark, plain, cWriteCodeCmd;
  149.         "Pascal", noIcon, noKey, noMark, plain, cInPascalCmd;
  150.         "C++", noIcon, noKey, noMark, plain, cInCPPCmd;
  151.     }
  152. };
  153.  
  154. resource 'cmnu' (5) {
  155.     5,
  156.     textMenuProc,
  157.     0x7FFFFFFF,
  158.     enabled,
  159.     "Card",
  160.      {
  161.         "Change Class Name", noIcon, noKey, noMark, plain, cChangeNameCmd;
  162.         "Change Super Class", noIcon, noKey, noMark, plain, cChangeSuperClassCmd;
  163.         "-", noIcon, noKey, noMark, plain, nocommand;
  164.         "Add Field", noIcon, noKey, noMark, plain, cAddFieldCmd;
  165.         "Add Method", noIcon, noKey, noMark, plain, cAddMethodCmd;
  166.         "Add Collaborator", noIcon, noKey, noMark, plain, cAddCollaboratorCmd;
  167.         "-", noIcon, noKey, noMark, plain, nocommand;
  168.         "Delete Field", noIcon, noKey, noMark, plain, cDelFieldCmd;
  169.         "Delete Method", noIcon, noKey, noMark, plain, cDelMethodCmd;
  170.         "Delete Collaborator", noIcon, noKey, noMark, plain, cDelCollaboratorCmd;
  171.     }
  172. };
  173.  
  174. resource 'MBAR' (kMBarDisplayed,
  175. #if qNames
  176. "card",
  177. #endif
  178.     purgeable) {
  179.     {mApple; mFile; mEdit; 4; 5; }
  180. };
  181.  
  182. RESOURCE 'vers' (1,
  183. #if qNames
  184. "File Version",
  185. #endif
  186.     purgeable) {
  187.     0x01,
  188.     0x00,
  189.     beta,
  190.     0x05,
  191.     verUs,
  192.     "1.0a2",
  193.     "1.0a2, ©1990 Apple Computer, Inc.  All rights reserved."
  194. };
  195.  
  196.  
  197. resource 'vers' (2, ",Package Version", purgeable) {
  198.     0x2,
  199.     0x0,
  200.     release,
  201.     0x0,
  202.     verUs,
  203.     "1.0a2",
  204.     "version 1.0a2",
  205. };